package wre;

/**
 * The Class Word is a container for the words in the datastore. Each word contains an
 * ID that the word related to, the string for the word, and the count for the word for that
 * ID connection.
 * 
 *  @author Adam Smith
 */
public class Word {
	
	/** The id. */
	int id;
	
	/** The word. */
	String word;
	
	/** The count. */
	int count;

	/**
	 * Instantiates a new word.
	 * Default Constructor.
	 */
	public Word() {
		super();
	}

	/**
	 * Instantiates a new word using the ID, string, and the count that was
	 * passed in. 
	 *
	 * @param id the id
	 * @param word the word
	 * @param count the count
	 */
	public Word(int id, String word, int count) {
		super();
		this.id = id;
		this.word = word;
		this.count = count;
	}

	/**
	 * Gets the count.
	 *
	 * @return the count
	 */
	public int getCount() {
		return count;
	}

	/**
	 * Gets the id.
	 *
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * Gets the word.
	 *
	 * @return the word
	 */
	public String getWord() {
		return word;
	}

	/**
	 * Sets the count.
	 *
	 * @param count the new count
	 */
	public void setCount(int count) {
		this.count = count;
	}

	/**
	 * Sets the id.
	 *
	 * @param id the new id
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * Sets the word.
	 *
	 * @param word the new word
	 */
	public void setWord(String word) {
		this.word = word;
	}
}
